package com.bjdd.jdy.ui.inspection;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import rx.Observable;

/**
 * Created by Administrator on 2017/5/2.
 */

public class InspectionModel implements InspectionContract.Model {
    @Override
    public Observable<BaseResult<String>> upLoadImg(String token, String carrierId, String orderNo, Map<String,RequestBody> file) {
        return Api.getInstance().service
                .pickup(token,carrierId,orderNo,file)
                .compose(RxSchedulers.io_main());
    }

}
